Checks if array initialization contains optional trailing comma.